package com.qfjy.homework.YangJin;

/**
 * @author : --
 * @version :1.0
 * @date : 2022/6/29 18:46
 */
//这是一个请求类
//股票类
public class Stock {
    private String name = "新能源";


    //将这两个变量请求输出出来
    public void buy( int quantity){

        System.out.println("买进：Stock [ 股票名称: "+name+", 数量: " + quantity +" ] ");
    }
    public void sell(int quantity){
        System.out.println("卖出：Stock [ 股票名称: "+name+", 数量: " + quantity +" ] ");
    }
}
